package club.ruanx.movie.repository;


import club.ruanx.core.repository.base.BaseRepository;
import club.ruanx.movie.entity.NewsComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author 阮胜
 * @date 2018/11/11 19:50
 */
public interface NewsCommentRepository extends BaseRepository<NewsComment, String> {
    Page<NewsComment> findAllByNewsIdOrderByCreateTimeDesc(String newsId, Pageable toPageable);
}
